<div class="bloc pub">
<?php $pubs = Doctrine_core::getTable('Pub')->findByEmplacementId(4); ?>
	<div class="header-bloc">
	<h2>Pub</h2>
	</div>
	<div class="bloc-content pubs_content" id="right_pubs_content">
		<?php foreach($pubs as $pub): ?>
			<img height="103" width="221" alt="" src="/uploads/pubs/<?php echo $pub->getImage() ?>" />				  
	   <?php endforeach; ?>
	</div>
        <div class="footer-bloc"></div>
</div>
<div class="bloc search">
	<div class="header-bloc"><h2><?php echo __('search') ?></h2></div>
	<div class="bloc-content">
		<form id="form_search" action="<?php echo url_for('@search_theconnexter') ?>" method="post">
			<input type="text" class="input_search" value="recherche" name="search" id="search"/>
			<input type="submit" class="input_go" value="" />
		</form>
	</div>
        <div class="footer-bloc"></div>
</div>
<div class="bloc membre">
	<div class="header-bloc"><h2><?php echo __('New Member') ?></h2></div>
	<div class="bloc-content">
		<ul>
		<?php foreach($getNewMember as $Member): {?>
			<li><span><?php echo $Member->getUsername() ?></span><br/>
				<img src="/uploads/user/<?php 
				$image=$Member->getUserimage();
				if(!empty($image)){ echo $image; }else{echo'noImage.png';}?>" alt="<?php echo $Member->getName() ?>" />
			</li>
		<?php } endforeach ?>
		<?php  if (!$sf_user->isAuthenticated()) : ?>
			<li class="clear liens" style="float:none; margin: auto;"><a href="<?php echo url_for('@sf_guard_register')?>" title=""><?php echo __('click here to become member')?> </a></li>
		<?php else :?><li class="clear" style="float:none; margin: auto;">&nbsp;</li>
		<?php endif; ?>
		</ul>
	</div>
        <div class="footer-bloc"></div>
</div>	
<div class="bloc rubrique">
	<div class="header-bloc"><h2><?php echo __('More visit rubrik') ?></h2></div>
	<div class="bloc-content">
		<ul>
		<?php foreach($getBestVisitRubrique as $rubrique): {?>
			<li class="text-rubrique">
				<span class="left"><a href="<?php  echo url_for('detailrubrique',$rubrique,true) ?>"><?php echo $rubrique->getTitre() ?></a></span>
				<span class="right"><?php echo $rubrique->getCompteur() ?></span>
				<div class="clear"></div>
			</li>
		<?php } endforeach ?>
		</ul>
	</div>
        <div class="footer-bloc"></div>
</div>
<div class="bloc sondage">
	<div class="header-bloc"><h2><?php echo __('Sondage') ?></h2></div>
	<div class="bloc-content">
		<form id="form_sondage" action="<?php echo url_for('@sondagesubmit') ?>" method="post">
			<ul>
				<?php $i=0;?>
				<?php foreach($getSondage as $sondage): {?>
				<?php if($i==0){
					echo '<li><h3 class="titre-sondage">'.$sondage->Groupesondage->getTitre().'</h3></li>'; 
					$i++;
				} ?>
				<li class="text-sondage"><span class="left"><?php echo $sondage->getProposition() ?></span><span class="right"><input type="radio" name="choix" value="<?php echo $sondage->getId() ?>" /></span><div class="clear"></div></li>
				<?php } endforeach ?>
				<li class="liens"><span class="left_btn"><span class="right_btn"><span class="rpt_btn"><input type="submit" class="btn_valider" value="vote" /></span></span></span></li>
			</ul>
		</form>
	</div>
        <div class="footer-bloc"></div>
</div>
